package com.zsy.mapper;

import com.zsy.entity.*;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ISalesMapper {
    // 新增客户
    int insertClient(MyClient mc);

    // 查询客户
    List<MyClient> queryClient();

    // 查询客户总数
    int getAllClientQuality();

    // 删除客户
    int deleteClient(@Param("clientId") int clientId);

    // 新增采购需求
    int insertPurchaseRequirements(PurchaseRequirements pr);

    // 查询合同列表
    List<ContractUser> selectContractAll();

    // 联系情况
    List<ContactInformation> selectContactInformation();

    // 重点客户跟进
    List<KeyCustomers> selectKeyCustomers();

    // 修改重点客户信息
    int updateKeyCustomers(KeyCustomers keyCustomers);

    // 查询商机
    List<BusinessManagement> selectBusinessManagement();

    // 查询商机总数
    int getAllBusinessQuantity();

     // 排行榜
    List<RankingList> selectRankingList();
}
